

package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author guonh
 * @since 2017-10-29
 */
@Data
public class AdminSysUserResetDto {

    /**
     * 主键ID
     */
    @NotNull(message = "{common.check.id}")
    @ApiModelProperty(value = "主键", dataType = "Long", required = true)
    private Long userId;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码(20)", dataType = "String", required = true)
    @Size(min = 1, max = 20, message = "密码长度 1-20")
    private String password;

}
